import request from '@/utils/request'


// 分页查询
export function queryCurrentSelCourseByPage(param) {
  return request({
      url: '/currentSelCourse/page',
      method: 'GET',
      params: param
    }
  )
}

// 分页查询
export function deleteSelCourseDeleteById(cid) {
  return request({
      url: '/currentSelCourse/deleteSelCourseRecordBySid',
      method: 'GET',
      params: cid
    }
  )
}

// 计算选课人数和教室容量
export function selCourseCalculate(cid) {
  return request({
      url: '/currentSelCourse/selCourseCalculate',
      method: 'GET',
      params: cid
    }
  )
}

// 学生选课
export function studentSelectCourse(data) {
  return request({
      url: '/currentSelCourse/studentSelectCourse',
      method: 'POST',
      data
    }
  )
}

// 学生所选课程查询
export function queryCurrentStuSelCourseByPage(params) {
  return request({
      url: '/currentSelCourse/queryCurrentStuSelCourseByPage',
      method: 'Get',
      params:params
    }
  )
}

// 学生退选课程
export function stuDeleteSelCourse(params) {
  return request({
      url: '/currentSelCourse/stuDeleteSelCourse',
      method: 'GET',
      params:params
    }
  )
}



